package com.xiyou.weblog.admin.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author xiyou
 * @description 文章被阅读事件
 */
@Getter
public class ReadArticleEvent extends ApplicationEvent {

    /*
    * 文章id
    * */
    private final Long articleId;

    public ReadArticleEvent(Object source, Long articleId) {
        super(source);
        this.articleId = articleId;
    }
}
